﻿class @ResponsesModel extends Backbone.Model

    defaults:
        Responses: []
        IsShowResponse: false
        BookId: ''

    url: ->
        url = SiteMap.Responses.Show + "?bookId=" + @attributes.BookId
        return url

    parse: (response) ->
        {
            Responses: response.Responses
            IsShowResponse: response.IsShowResponse
        }